home *** CD-ROM | disk | FTP | other *** search
- Path: mudskipper.cac.psu.edu!user
- From: fcusack@tdx.org (frank.)
- Newsgroups: comp.lang.c
- Subject: Re: Leap Years
- Date: Fri, 16 Feb 1996 12:56:07 -0400
- Organization: Psychic Enemies Network
- Distribution: world
- Message-ID: <fcusack-1602961256070001@mudskipper.cac.psu.edu>
- References: <8BA8405.02C70020E1.uuout@sourcebbs.com> <4fsk14$jo2@kocrsv08.delcoelect.com> <3121EF9A.CA5@mail.isd.net> <4g28ut$p87@taurus.fccc.edu>
- NNTP-Posting-Host: mudskipper.cac.psu.edu
-
- In article <4g28ut$p87@taurus.fccc.edu>, C_Herceg@fccc.edu wrote:
-
- > In article <3121EF9A.CA5@mail.isd.net>, "David A. Peterson"
- > <dpeterso@mail.isd.net> writes:
- > >Richard E. Fiegle wrote:
- > >>
- > >> david.mohorn@sourcebbs.com (DAVID MOHORN) wrote:
- > >> >How do you feature out leap years? If its evenly divisible by 400
- > >and
- > >> >4?
- > >> >
- > >>
- > >> Anything divisible by 4 is already guaranteed to be
- > >> divisible by 400.
- > >
- > >
- > >Leap years are evenly divisible by 4, except those that are evenly
- > >divisible by 100.
- > >Leap centuries are evenly divisible by 400. 2000 will be a leap
- > >century!
- >
- > Why, then, is 2000 a leap year, since it is evenly divisible by 100?
- > Wasn't 1900 a leap year? If 1904 was (1904/4=476) by your definition a
- > leap year, then 1900 must have been. Why are years that are evenly
- > divisible by 100 excluded?
-
- His definition is (slightly) wrong. A year is a leap year if it is
- divisible by 4, unless it is the end of the century (1800, 1900, 2000,
- ...). In that case, it must be divisible by 400 in order to be a leap
- year. No, 1900 was not a leap year. Three out of four centuries are
- excluded so that the calendar remains in sync with our orbit around the
- sun (so seasons are "predictable"). It's not perfect however. Every so
- often, we have to add a leap second, which occurs on 1/1 at midnight. Does
- anyone know what the rule is for leap seconds?
- ~Frank
- -- I am Pentium of Borg. Division is futile. You will be approximated. --
- -- If you build it, they will come --> http://www.tdx.org/~fcusack/ --
- -- PGP key fingerprint: 01 C0 C0 B9 CC 78 67 0F 3F 64 80 65 8B 0F F9 EA --
-